﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using Caliburn.Core.InversionOfControl;
using Caliburn.PresentationFramework.ApplicationModel;
using Caliburn.ShellFramework.Services;

namespace MTGenome.ViewModels
{
    [Singleton(typeof(IBusyService)), PartCreationPolicy(CreationPolicy.Shared)]
    public sealed class BusyViewModel : DefaultBusyService, IBusyService
    {
        public BusyViewModel(IWindowManager windowManager)
            : base(windowManager)
        { }

        void IBusyService.MarkAsBusy(object sourceViewModel, object busyViewModel)
        {
            base.MarkAsBusy(sourceViewModel, busyViewModel);
        }

        void IBusyService.MarkAsNotBusy(object sourceViewModel)
        {
            base.MarkAsNotBusy(sourceViewModel);
        }
    }
}
